import { useRenderIcon } from "@/components/ReIcon/src/hooks";
import Setting from "@iconify-icons/ep/setting";

const Layout = () => import("@/layout/index.vue");

export default {
  path: "/monitor",
  name: "monitor",
  component: Layout,
  redirect: "/monitor/online",
  meta: {
    icon: useRenderIcon(Setting),
    title: "系统监控",
    permissions: ["admin","monitor"],
    rank: 7
  },
  children: [
    {
      path: "/monitor/online",
      name: "monitor_online",
      meta: {
        title: "在线用户",
        permissions: ["admin","monitor.online"]
      },
      component: () => import("@/views/monitor/online.vue")
    },
    {
      path: "/monitor/job",
      name: "monitor_job",
      meta: {
        title: "定时任务",
        permissions: ["admin","monitor.job"]
      },
      component: () => import("@/views/monitor/job.vue")
    }
  ]
} as RouteConfigsTable;
